package pkg;
import java.util.List;
import java.util.Set;

import javax.ejb.Local;

import jpa.Link;
import jpa.Page;

@Local
public interface IStatelessBean {

	public enum PageType {
		MENU,
		TEXT,
		IMAGE,
		VIDEO,
		APPLET,
		NONE
	}
	
	public Page getRootPage();
	public Page getPageById(long id);
	public List<Link> sortLinks(Set<Link> s);
	
	public boolean isMenuPage(Page p);
	public boolean isImagePage(Page p);
	public boolean isVideoPage(Page p);
	public boolean isAppletPage(Page p);
	public boolean isTextPage(Page p);
	public PageType getPageType(Page p);
	public List<Link> getMenuLinks(Page p);
	public Link getNextLink(Page p);
	public Link getPreviousLink(Page p);
	public Link getUpLink(Page p);
	public Link getDownLink(Page p);
	public List<Link> getOtherLinks(Page p);
	public List<String> getDataFeedCategories();
	public List<String> getDataFeedDataItems();
	public List<String> getDataFeedData(String dataType, int time);
}
